package com.jiangyao.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 简历投递（求职）
 * </p>
 *
 * @author zhoushuangxiang
 * @since 2020-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ResumeSend extends Model<ResumeSend> {

    private static final long serialVersionUID=1L;

    /**
     * 自增ID
     */
    @TableId(value = "send_id", type = IdType.AUTO)
    @ApiModelProperty("自增ID")
    private Integer sendId;

    /**
     * 归属组织ID
     */
    @ApiModelProperty("归属组织ID")
    private Integer orgId;

    /**
     * 简历快照ID
     */
    @ApiModelProperty("简历快照ID")
    private Integer resumeId;

    /**
     * 成员ID
     */
    @ApiModelProperty("成员ID")
    private Integer userId;

    /**
     * 职位Id
     */
    @ApiModelProperty("职位Id")
    private Integer jobId;

    /**
     * 关联的试题答题ID
     */
    @ApiModelProperty("关联的试题答题ID")
    private Integer answerId;

    /**
     * 生成时间
     */
    @ApiModelProperty("生成时间")
    private Date createTime;

    /**
     * 投递状态 0未查看   1已查看   2发送面试邀请
     */
    private Integer deliveryStatus;

    /**
     * 状态 1待确认 2已接受 0已拒绝
     */
    @ApiModelProperty("状态 1待确认 2已接受 0已拒绝")
    private Integer status;


    @Override
    protected Serializable pkVal() {
        return this.sendId;
    }

}
